#include <iostream>
using namespace std;

int gcd(int a,int b)
{
    int c;
    while((c=a%b))
    {
        a=b;
        b=c;
    }
    return b; 
}

int main() {
        int A,B;
        while(cin>>A>>B)
        {
            if(A<B)
            {
                swap(A,B);
            }
            cout<<A*B/gcd(A,B)<<endl;
        }
        return 0;
}
